﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using QxFramework.Utilities;
using QxFramework.Core;

public class DebugManager : MonoSingleton<DebugManager>
{
    public Vector3 mosPos;
    public Vector3 GetMousePos()
    {
        var screenPos = Camera.main.WorldToScreenPoint(transform.position);
        var mousePos = Input.mousePosition;
        mousePos.z = screenPos.z;
        var mousePosInWorld = Camera.main.ScreenToWorldPoint(mousePos);
        mosPos = mousePosInWorld;
        return mousePosInWorld;
    }

    public void Update()
    {
        GetMousePos();
    }
}
